
module.exports = {
    publicPath: './', //bulid的时候用相对路径
    outputDir: 'dist',
    assetsDir: 'static',
    productionSourceMap: false, 
    //设置开发用web服务器
    devServer: {
        headers: {
            'Access-Control-Allow-Origin': '*',
        },
        proxy: {
            // '^/bimFile1': {
            //     target: 'http://222.135.236.172:16124',
            //     changeOrigin: true,
            //     rewrite: path => path.replace(/^\/bimFile1/, /^\/bimFile/),
            // },
            '^/bimFile': {
                target: 'http://192.168.1.122:80',
                changeOrigin: true,
                rewrite: path => path.replace(/^\/bimFile/, '/bimFile'),
            },
        },
        port: 8081,
        open: false
    }
}